const KoaRouter = require("@koa/router")
const labelController = require("../controller/label.controller")
const { authorVerify } = require("../middleware/login.middleware")

const labelRouter = new KoaRouter({ prefix: "/label" })

// 增：创建标签
labelRouter.post("/", authorVerify, labelController.create)
// 查：查询标签列表
labelRouter.get("/", labelController.list)

module.exports = labelRouter
